@inherits umbraco.MacroEngines.DynamicNodeContext
@using umbraco.MacroEngines
@using umbraco.presentation.nodeFactory;
@using SPCFMedicineInformer.DocumentTypes;
@using Vega.USiteBuilder;
@{
    int tempInt;
    string strPage = umbraco.library.RequestQueryString("p") != null ? umbraco.library.RequestQueryString("p").ToString() : "";
    int page = int.TryParse(strPage, out tempInt) ? tempInt : 0;
    int totalRecords = 0;
    switch ((string)Parameter.Type)
    {
        case "MedicineItem":
            totalRecords = NodeLocator.GetNodesOfExactType<MedicineItem>().ToList().Count;
            break;
    }
    Response.Write(ViewState["page"]);
    <div class="pagination">    
        <a class="button" href=""><span><img width="12" height="9" alt="First"  src="/images/admin/arrow-stop-180-small.gif"> First</span></a> 
        <a class="button" href=""><span><img width="12" height="9" alt="Previous"  src="/images/admin/arrow-180-small.gif"> Prev</span></a>
        <div class="numbers">
            <span>Page:</span> 
            <a href="">1</a> 
            <span>|</span> 
            <a href="">2</a> 
            <span>|</span> 
            <span class="current">3</span> 
            <span>|</span> 
            <a href="">4</a> 
            <span>|</span> 
            <a href="">5</a> 
            <span>|</span> 
            <a href="">6</a> 
            <span>|</span> 
            <a href="">7</a> 
            <span>|</span> 
            <span>...</span> 
            <span>|</span> 
            <a href="">99</a>
        </div> 
        <a class="button" href=""><span>Next <img width="12" height="9" alt="Next"  src="/images/admin/arrow-000-small.gif"></span></a> 
        <a class="button last" href=""><span>Last <img width="12" height="9" alt="Last"  src="/images/admin/arrow-stop-000-small.gif"></span></a>
    <div style="clear: both;"></div> 
    </div>
}